﻿// <copyright file="NewsItemMedia.cs" company="Microsoft Corporation">
// Copyright (c) 2009 Microsoft Corporation All Rights Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-04-12</date>
// <summary>NewsItem Media element</summary>

namespace NYTimes.Data
{
    /// <summary>
    /// News Item Media
    /// </summary>
    public class NewsItemMedia
    {
        /// <summary>
        /// Gets or sets the Media type
        /// </summary>
        /// <remarks>valid values are image</remarks>
        public string MediaType { get; set; }

        /// <summary>
        /// Gets or sets the media subtype
        /// </summary>
        /// <remarks>valid values are photo</remarks>
        public string Subtype { get; set; }

        /// <summary>
        /// Gets or sets the media caption
        /// </summary>
        public string Caption { get; set; }

        /// <summary>
        /// Gets or sets the media copyright
        /// </summary>
        public string Copyright { get; set; }

        /// <summary>
        /// Gets or sets the media metadata
        /// </summary>
        public MediaMetadata Metadata { get; set; }

        /// <summary>
        /// Gets the properties and values listed
        /// </summary>
        /// <returns>a string with the property names and values</returns>
        public override string ToString()
        {
            return Synergist.Utility.GetProperties(this);
        }
    }
}
